import request from '@/utils/request'

export function listDeviceTypes(params) {
  return request({
    url: '/api/device-type/list-device-types',
    method: 'get',
    params: params
  })
}

export function pageDeviceTypes(params) {
  return request({
    url: '/api/device-type/page-device-types',
    method: 'get',
    params: params
  })
}

export function addDeviceType(data) {
  return request({
    url: '/api/device-type/add-device-type',
    method: 'post',
    data
  })
}

export function updateDeviceType(data) {
  return request({
    url: '/api/device-type/update-device-type',
    method: 'post',
    data
  })
}

export function deleteDeviceType(id) {
  return request({
    url: '/api/device-type/delete-device-type' + id,
    method: 'delete'
  })
}
